<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template transform_replace_view</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../headers.html#doxygen.headers.transform__replace_8hpp" title="Header &lt;boost/parser/transform_replace.hpp&gt;">
<link rel="prev" href="namespaceboost_1_1parser_1a6a4718f6053f41cef3acc9152bfe1dc1.html" title="Global as_utf32">
<link rel="next" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html" title="Struct template iterator">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1a6a4718f6053f41cef3acc9152bfe1dc1.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.transform__replace_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template transform_replace_view</span></h2>
<p>boost::parser::transform_replace_view</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../headers.html#doxygen.headers.transform__replace_8hpp" title="Header &lt;boost/parser/transform_replace.hpp&gt;">boost/parser/transform_replace.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ranges</span><span class="special">::</span><span class="identifier">viewable_range</span> V<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">move_constructible</span> F<span class="special">,</span> 
         <span class="keyword">typename</span> Parser<span class="special">,</span> <span class="keyword">typename</span> GlobalState<span class="special">,</span> <span class="keyword">typename</span> ErrorHandler<span class="special">,</span> 
         <span class="keyword">typename</span> SkipParser<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html" title="Struct template transform_replace_view">transform_replace_view</a> <span class="special">{</span>
  <span class="comment">// member classes/structs/unions</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1a466cffb3b861f9962cbce248db107cf7"><span class="identifier">I</span></a><span class="special">;</span>             
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1afc1a29557d0ea4ea9ab8509e01c0f6dc"><span class="identifier">S</span></a><span class="special">;</span>             
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1a43ee50ca362d38b212cff4b07b79f363"><span class="identifier">ref_t_iter</span></a><span class="special">;</span>    
    <span class="keyword">typedef</span> <span class="identifier">BOOST_PARSER_SUBRANGE</span><span class="special">&lt;</span> <span class="identifier">ref_t_iter</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1ab7dcd0ca03442022086e413f1d20b002"><span class="identifier">reference_type</span></a><span class="special">;</span>
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1af7fd5f583e654f28f1a6cb47e993be85"><span class="identifier">base_type</span></a><span class="special">;</span>     

    <span class="comment">// <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#id-1_3_26_11_12_1_1_1_3_7-bb">public member functions</a></span>
    <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1a4ac8e2abc61b3a6676325471ca8cfa98"><span class="identifier">iterator</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1ab1b3b5de14b959359e0a54ff76b5e200"><span class="identifier">iterator</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">&amp;</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1af68e38838e30b39c1a2ee2c68bf43fe1"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">reference_type</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1_1iterator_1a45ff17fb21be8c62cc2c506dd90b2462"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view_1_1sentinel.html" title="Struct template sentinel">sentinel</a> <span class="special">{</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#id-1_3_26_11_12_1_1_1_5-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a028587fc44751546a9db6e27fecc876b"><span class="identifier">transform_replace_view</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1ab3ce8aa351ecf78f8642e25ffab56b94"><span class="identifier">transform_replace_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> 
                         <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                         <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> 
                         <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1abe42eef43eeee97a44bcfe840ffc6cac"><span class="identifier">transform_replace_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> 
                         <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                         <span class="identifier">F</span><span class="special">,</span> <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a49ec848ef68687c66bcfc982772cf259"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a92965071bedfc1ffca18dc8888cce265"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1af200619b2c6cce5362fd7e43b87bebee"><span class="identifier">f</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a5e28b2ba8689262ff66108d564c204c0"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a3cd644061eba14aa9db439868abbee18"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a46280d7209aa3848306972f5f5e4857f"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1transform__replace__view.html#doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1ad839ad20250b50085af9563c67d325b9"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.26.11.12.3.4"></a><h2>Description</h2>
<p>Produces a range of subranges of a given range <code class="computeroutput">base</code>. Each subrange is either a subrange of <code class="computeroutput">base</code> that does not match the given parser <code class="computeroutput">parser</code>, or is <code class="computeroutput">f(*boost::parser::parse(match, parser))</code>, where <code class="computeroutput">f</code> is the given invocable and <code class="computeroutput">match</code> is the matching subrange.</p>
<p>In addition to the template parameter constraints, <code class="computeroutput">F</code> must be invocable with the attribute type of <code class="computeroutput">Parser</code>; <code class="computeroutput">V</code> and the range type produced by <code class="computeroutput">F</code>, "`Rf`" must be ranges of <code class="computeroutput">char</code>, or must have the same UTF format; and <code class="computeroutput">V</code> and <code class="computeroutput">Rf</code> must meet the same compatibility requirements as described in <code class="computeroutput">std::ranges::join_view</code>. </p>
<div class="refsect2">
<a name="id-1.3.26.11.12.3.4.4"></a><h3>
<a name="id-1_3_26_11_12_1_1_1_5-bb"></a><code class="computeroutput">transform_replace_view</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a028587fc44751546a9db6e27fecc876b"></a><span class="identifier">transform_replace_view</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1ab3ce8aa351ecf78f8642e25ffab56b94"></a><span class="identifier">transform_replace_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
                       <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
                       <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> skip<span class="special">,</span> <span class="identifier">F</span> f<span class="special">,</span> 
                       <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1abe42eef43eeee97a44bcfe840ffc6cac"></a><span class="identifier">transform_replace_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
                       <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
                       <span class="identifier">F</span> f<span class="special">,</span> <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a49ec848ef68687c66bcfc982772cf259"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a92965071bedfc1ffca18dc8888cce265"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1af200619b2c6cce5362fd7e43b87bebee"></a><span class="identifier">f</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a5e28b2ba8689262ff66108d564c204c0"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a3cd644061eba14aa9db439868abbee18"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1a46280d7209aa3848306972f5f5e4857f"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1transform__replace__view_1ad839ad20250b50085af9563c67d325b9"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1a6a4718f6053f41cef3acc9152bfe1dc1.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.transform__replace_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1transform__replace__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
